// import dark theme
// @use "element-plus/theme-chalk/src/dark/css-vars.scss" as *;

// :root {
//   --ep-color-primary: red;
// }

@use "./var.scss" as *;
@use "./gzg-icon.scss" as *;

body {
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
}

html,
body{
  height: 100%;
  min-width: 1440px;
  // min-height: 1080px;

 
}

a {
  color: var(--ep-color-primary);
  text-decoration: none;
}

code {
  border-radius: 2px;
  padding: 2px 4px;
  background-color: var(--ep-color-primary-light-9);
  color: var(--ep-color-primary);
}

#app{
  width: 100%;
  height: 100%;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}
    
input[type="number"]{
  -moz-appearance: textfield;
}

input:focus-visible {
  outline: 1px solid #2770EE;
}

.page{
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: 24px;
  display: flex;
  flex-direction: column;

  &.no-padding{
    padding: 0;
  }

  .tool-wrap{
    display: flex;
    align-items: center;
    margin-bottom: 16px;

    .item{
      display: flex;
      align-items: center;

      &.link{
        cursor: pointer;
        color: #2770EE;
      }

      .val{
          color: #F56C6C;
          font-size: 18px;
          margin-left: 8px;
      }
    }

    .item + .item{
      margin-left: 30px;
    }

    .btn {
      margin-left: auto;
      margin-right: 16px;
    }

    .el-input,
    .el-select{
      width: 160px;
    }

    .el-input + .el-select{
      margin-left: 16px;
    }

    .el-input + .el-input{
      margin-left: 16px;
    }

    .el-select + .el-select{
      margin-left: 16px;
    }
  }

  .search-simple-wrap{
    height: 32px;
    width: 100%;
    display: flex;
    align-items: center;
    margin-bottom: 24px;
  }
  
  .search-simple-item + .search-simple-item{
    margin-left: 16px;
  }
  
  .grid-wrap{
    flex: 1;
    height: 0;
  }
  
  .page-wrap{
    height: 32px;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin-top: 24px;
  }
  
}


.el-table{

  .el-table__cell{
    padding: 12px 0;
  }

  .el-table__header-wrapper{
    .el-table__cell{
      background-color: #fafafa !important;
      color: #909399;
      height: 48px;
    }
  }

  .el-table__body-wrapper{
    .el-table__cell{
      color: #303133;
    }
  }
}

.el-dialog{
  // border-radius: 12px !important;
}

.dialog-footer{
  text-align: right;
}

.no-data-wrap{
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;

  .el-button{
    padding:12px 20px;
    height: 40px;
  }
}

.flex-column{
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.el-form {
  .el-select{
    width: 100%;
  }
}

.el-drawer__header{
  margin-bottom: 20px !important;
}

.page-header{
  height: 64px;
  width: 100%;
  box-sizing: border-box;
  padding: 0 24px;
  display: flex;
  align-items: center;

  .page-title{
    font-size: 20px;
    font-weight: 500;
    color: #303133;
    line-height: 28px;

    
  }

  .page-desc{
    position: relative;
    font-size: 14px;
    font-weight: 400;
    color: #909399;
    line-height: 22px;
    margin-left: 24px;

    &::before{
      content:' ';
      position: absolute;
      left: -12px;
      top: 50%;
      transform: translateY(-50%);
      width: 1px;
      height: 12px;
      background-color: #e4e7ed;
    }
  }
}

.page-container{
  flex: 1;
  height: 0;
  width: 100%;
}
 
.no-data{
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.el-drawer__header{
  padding: 20px 20px 10px 20px !important;
  box-shadow: none !important;
}

.drawer-header{
  display: flex;
  justify-content: space-between;

  .drawer-title{
      font-size: 18px !important;
      line-height: 26px !important;
      color: #303133 !important;
      font-weight: 500 !important;
  }
}

.draw-detail{
  box-sizing: border-box;

  .el-tabs__nav-wrap{
      padding: 0 !important;
  }

}

.pane{
  .title{
      height: 48px;
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-top: 10px;

      .text{
          font-size: 14px;
          font-weight: 500;
          color: #303133;
      }

      .desc{
        font-size: 12px;
        color: #ddd;
        margin-left: 10px;
      }

      .el-button{
          margin-right: 16px;
      }
  }

  .form-item{
      display: flex;

      .label,
      .val{
          padding:6px 0
      }

      .label{
          width: 80px;
          font-size: 14px;
          font-weight: 400;
          color: #A8ABB2;
          line-height: 22px;
          margin-right: 40px;
      }

      .val{
          font-size: 14px;
          font-weight: 400;
          color: #303133;
          line-height: 22px;
          flex: 1;
          width: 0;

          .img{
              width: 80px;
              height: 80px;
              border: 1px solid #e4e7ed;
              border-radius: 12px;
          }
      }
  }

  .html {
      img{
          width: 100%;
      }
  }

  .tips{
      height: 48px;
      line-height: 48px;   
      font-size: 14px;
      font-weight: 400;
      color: #909399;
  }
}

.form-section{
  position: relative;
  height: 42px;
  width: 100%;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  padding-left: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #303133;
  margin-bottom: 10px;

  &::before{
      content:' ';
      position: absolute;
      left: 0;
      top: 50%;
      transform: translateY(-50%);
      height: 14px;
      width: 2px;
      background-color: #2770EE;
  }

  .form-section-desc{
      font-size: 14px;
      font-weight: 400;
      color: #A8ABB2;
      margin-left: 8px;
  }
}

.el-drawer__body{
  background-color: #fff !important;
  padding: 10px 20px !important;
  box-sizing: border-box;
}

.el-drawer__header{
  margin-bottom: 0 !important;
}

.pic-list{
  display: flex;


  .pic-item{
    width: 148px;
    height: 148px;
    margin-right: 10px;
    img{
      width: 100%;
    }
  }
}